package edu.gyc.security.model;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class Girl {
    private Integer id;
    @NotEmpty(message = "用户名不为空")
    private String username;
    private String password;
    private Date birthday;
    @NotNull(message = "出价吧")
    @Range(min = 100,max = 1000)
    private Integer price;

    public Girl() {
    }

    public Girl(Integer id, String username, String password, Integer price) {
        this.id = id;
        this.username = username;
        this.password = password;
       // this.birthday = LocalDateTime.now();
        this.price = price;
    }
}
